import request from '@/utils/request'

// 查询预约列表
export function listTapt(query) {
  return request({
    url: '/system/tapt/list',
    method: 'get',
    params: query
  })
}

// 查询预约详细
export function getTapt(aptId) {
  return request({
    url: '/system/tapt/info/' + aptId,
    method: 'get'
  })
}

// 新增预约
export function addTapt(data) {
  return request({
    url: '/system/tapt/add',
    method: 'post',
    data: data
  })
}

// 修改预约
export function updateTapt(data) {
  return request({
    url: '/system/tapt/update',
    method: 'put',
    data: data
  })
}

// 删除预约
export function delTapt(aptId) {
  return request({
    url: '/system/tapt/delete/' + aptId,
    method: 'delete'
  })
}

export function updatePublish(data) {
  return request({
    url: '/system/tapt/updatePublish',
    method: 'post',
    data: data
  })
}
export function acceptAptOpt(data) {
  return request({
    url: '/pay/api/ord/acceptAptOpt',
    method: 'post',
    data: data
  })
}
